<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Posts extends Model
{
    //
    protected $guarded = []; //不允许使用数组注入字段
    protected $fillable = ['title','content']; //允许使用数组注入字段
}
